package com.huangpuweb.task.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class BlmqEmergencyDtlRowMapper implements RowMapper<BlmqEmergencyDtl> {
    @Override
    public BlmqEmergencyDtl mapRow(ResultSet resultSet, int i) throws SQLException {
        BlmqEmergencyDtl dtl =new BlmqEmergencyDtl();
        dtl.setID(resultSet.getString("ID"));
        dtl.setCHECK_LISE_ID(resultSet.getString("CHECK_LISE_ID"));
        dtl.setDANGER_SITE_URL(resultSet.getString("DANGER_SITE_URL"));
        dtl.setWARNING_URL(resultSet.getString("WARNING_URL"));
        dtl.setWARNING_DATE(resultSet.getTimestamp("WARNING_DATE"));
        dtl.setCREATE_TIME(resultSet.getTimestamp("CREATE_TIME"));
//        dtl.setJhpt_update_time(resultSet.getTimestamp("jhpt_update_time"));
//        dtl.setJhpt_delete(resultSet.getInt("jhpt_delete"));
//        dtl.setData_operatedate(resultSet.getTimestamp("data_operatedate"));
//        dtl.setData_operatetype(resultSet.getString("data_operatetype"));
//        dtl.setService_dt(resultSet.getString("service_dt"));
//        dtl.setService_dt(resultSet.getString("data_src"));
//        dtl.setSys_load_dt(resultSet.getTimestamp("is_reload"));
//        dtl.setIs_reload(resultSet.getString("service_dt"));
//        dtl.setSys_reload_dt(resultSet.getString("sys_reload_dt"));
//        dtl.setDate_id(resultSet.getString("date_id"));
        return dtl;
    }
}
